if __name__ == "__main__":
    # 打开文件
    f = open("./real.txt","r",encoding="utf-8")
    content = f.read()
    print(content)
    print("----------------------------------------")
    with open("./real.txt","r",encoding="utf-8") as f:
        content = f.readline()
        print(content)